package org.example.liuy.service.event;


import lombok.extern.slf4j.Slf4j;

@Slf4j
public class LoggingBettingEventListener implements StakeEventListener {

    @Override
    public void onBettingEvent(StakeEvent event) {
        log.info("Betting event - Offer: {}, Customer: {}, Stake: {}, Previous: {}",
                event.getBetOfferId(), event.getCustomerId(), event.getStake(), event.getPreviousStake());
    }
}